var fs = require('fs');
var events = require('events');

// var data = fs.readFileSync('input.txt');

// console.log(data.toString());

fs.readFile("input.txt",(err, data)=>{
	if(err) console.error(err.stack);
	console.log(data.toString());
})

// var eventEmitter = new events.EventEmitter();

// var connectHeader = function(){
// 	console.log('连接成功');
// 	eventEmitter.emit("data_received")
// }

// eventEmitter.on("connection", connectHeader);

// eventEmitter.on('data_received',function(){
// 	console.log('接收数据成功');
// })

// eventEmitter.emit('connection');

console.log('end');